package com.irdstudio.efp.esb.api.bean.psd.credit.resp;

import com.alibaba.fastjson.annotation.JSONField;
import com.irdstudio.basic.framework.core.annotation.EsbRetCd;
import com.irdstudio.basic.framework.core.annotation.EsbRetMsg;
import com.irdstudio.efp.esb.api.common.GroupeInterface;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

public class PsdSxCtrCusConfirmRespBean implements Serializable {

    /**
     * 返回代码
     */
    @EsbRetCd
    @JSONField(name = "RetCd")
    @NotNull(groups = {GroupeInterface.psd.class})
    @NotEmpty(groups = {GroupeInterface.psd.class})
    @Length(max = 32, groups = {GroupeInterface.psd.class})
    private String retCd;

    /**
     * 返回信息
     */
    @EsbRetMsg
    @JSONField(name = "RetMsg")
    @Length(max = 512, groups = {GroupeInterface.psd.class})
    private String retMsg;

    public String getRetCd() {
        return retCd;
    }

    public void setRetCd(String retCd) {
        this.retCd = retCd;
    }

    public String getRetMsg() {
        return retMsg;
    }

    public void setRetMsg(String retMsg) {
        this.retMsg = retMsg;
    }
}